package com.slmxz.tms.document.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.slmxz.tms.common.model.Option;
import com.slmxz.tms.document.model.entity.Driver;
import com.slmxz.tms.document.model.vo.DriverVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 司机信息Mapper接口
 * @author sunyao
 * @Date 2024-11-15
 */
public interface DriverMapper extends BaseMapper<Driver> {

    /**
     * 获取司机信息分页数据
     * @param page 分页对象
     * @return
     */
    List<DriverVO> selectDriverPage(IPage<DriverVO> page, @Param("driver")DriverVO driver);

    /**
     * 获取司机信息数据作为下拉框参数
     * @return
     */
    List<Option<String>> selectOption(@Param("driver")DriverVO driver);

}
